      <?php echo form_open_multipart('admin/profile/create/'); ?>	<!-- start title -->
		<div class="title corners_top" style="float:left;width:300px;"><h6 style="color:#900;" id="forms"><?php echo $title; ?></h6></div><!-- end title -->
        		<div class="proccess_bar">
                
          

    <ul class="menu_bar">
    <li><?php
	$data = array('name' => 'create', 'value' => ' ','class'=>'delete-1', 'id' => 'save');
	 echo form_submit($data);?> <!--<a href="#" ><span class="save-1"> </span>Save</a> -->
     Lưu
     </li>
	
     <li> 
	<?php 
	 $data = array('name' => 'close', 'value' => ' ','class'=>'delete-1', 'id' => 'cancel');
	 
	 echo form_submit($data); ?>
     Hủy<!--<a href="#" ><span class="cancel-1"></span>Cancel</a>--></li>
    </ul>
 </div>
		<div class="content">           
        <?php // echo '<p class="title">'.$this->lang->line('title_user_info').'</p>';
 if(isset($missing) && is_array($missing) )
   {
  
   echo ' <div><a href="javascript:();" title="Succes box" class="box error corners"><span class="close">&nbsp;</span>';
   foreach($missing as $item)
   {
   		echo $item."<br />";
   }
   echo "</a></div>";
   }
   

 echo "<p>";
 
$option[]="----Chọn loại----";
$option[1]="Công ty chính";
$option[2]="Công ty chi nhánh";
  	 
	
  echo '<div >';
  	echo '<h6  class="t_float">','Công ty','</h6>', form_dropdown('ct',$option,0).' <font color="red" style="font-weight:bold">(*)</font>';
	echo '</div>';
	
	echo '<div style="clear:left"></div>';
 
echo "</p>";
 $code = 'pro_company';

  $label ='Tên công ty';


		echo '<h6>',form_label($label),'</h6>';

	$data = array('name' =>$code,'class'=>'large_input corners','id' => $code);
	
	echo '<div style="clear:both"><p>';
		if (! empty($missing) && array_key_exists($code, $missing))

		 echo form_label("Tiếng Việt".'<font color="red" style="font-weight:bold">(*)</font>'),form_input($data, set_value($code)),'<span class="info_error">error</span>';

	else
	  echo form_label("Tiếng Việt".'<font color="red" style="font-weight:bold">(*)</font>'),form_input($data, set_value($code));
	
	echo '</p>';
//
if($num_lang >1)
{
 $code2 = 'pro_company_en';

  $label ='Tên công ty';

	
		//echo '<h6>',form_label($label),'</h6>';

	$data = array('name' =>$code2,'class'=>'large_input corners',  'value' => '');
	
	echo '<p>';
		if (! empty($missing) && array_key_exists($code2, $missing))

		 echo form_label("Tiếng Anh".'<font color="red" style="font-weight:bold">(*)</font>'),form_input($data, set_value($code2)),'<span class="info_error">error</span>';

	else
	  echo form_label("Tiếng Anh".'<font color="red" style="font-weight:bold">(*)</font>'),form_input($data, set_value($code2));
	
	echo '</p></div>';
}

 $code = 'pro_address';

  $label ='Địa chỉ';

	
		echo '<h6>',form_label($label),'</h6><br />';

	$data = array('name' =>$code,'class'=>'large_input corners','id' => $code);
	
	echo '<div style="clear:both" ><p>';
		if (! empty($missing) && array_key_exists($code, $missing))

		 echo form_label("Tiếng Việt"),form_input($data, set_value($code)),'<span class="info_error">error</span>';

	else
	  echo form_label("Tiếng Việt"),form_input($data, set_value($code));
	
	echo '</p>';

if($num_lang >1)
{
 $code2 = 'pro_address_en';

  $label ='Địa chỉ';

	
	

	$data = array('name' =>$code2,'class'=>'large_input corners',  'value' => '' );
	
	echo '<p>';
		if (! empty($missing) && array_key_exists($code2, $missing))

		 echo form_label("Tiếng Anh"), form_input($data, set_value($code2)),'<span class="info_error">error</span>';

	else
	  echo form_label("Tiếng Anh"), form_input($data, set_value($code2));
	
	echo '</p></div>';
}

 $code = 'pro_email';

  $label ='Email';
	echo '<h6>',form_label($label),'</h6>';

	$data = array('name' =>$code,'class'=>'large_input corners');
	
	echo '<p>';
		if (! empty($missing) && array_key_exists($code, $missing))

		 echo form_input($data, set_value($code)),'<span class="info_error">error</span>';

	else
	  echo form_input($data, set_value($code));
	
	echo '</p>';


 $code = 'pro_hotline';

  $label ='Hotline';
	echo '<h6>',form_label($label),'</h6>';

	$data = array('name' =>$code,'class'=>'large_input corners');
	
	echo '<p>';
		if (! empty($missing) && array_key_exists($code, $missing))

		 echo form_input($data, set_value($code)),'<span class="info_error">error</span>';

	else
	  echo form_input($data, set_value($code));
	
	echo '</p>';


 $code = 'pro_phone';

  $label ='Điện thoại';
	echo '<h6>',form_label($label),'</h6>';

	$data = array('name' =>$code,'class'=>'large_input corners');
	
	echo '<p>';
		if (! empty($missing) && array_key_exists($code, $missing))

		 echo form_input($data, set_value($code)),'<span class="info_error">error</span>';

	else
	  echo form_input($data, set_value($code));
	
	echo '</p>';
	
	
	
	 $code = 'pro_fax';

  $label ='Fax';
	echo '<h6>',form_label($label),'</h6>';

	$data = array('name' =>$code,'class'=>'large_input corners');
	
	echo '<p>';
		if (! empty($missing) && array_key_exists($code, $missing))

		 echo form_input($data, set_value($code)),'<span class="info_error">error</span>';

	else
	  echo form_input($data, set_value($code));
	
	echo '</p>';
	echo '<pre>';
	
	//print_r($row);
	
	echo '</pre>';
	 $code = 'pro_transaction';

  $label ='Tên giao dịch';
	echo '<h6>',form_label($label),'</h6>';

	$data = array('name' =>$code,'class'=>'large_input corners');
	
	echo '<p>';
		if (! empty($missing) && array_key_exists($code, $missing))

		 echo form_input($data, set_value($code)),'<span class="info_error">error</span>';

	else
	  echo form_input($data, set_value($code));
	
	echo '</p>';
	
	
	 $code = 'pro_account';

  $label ='Số tài khoản';
	echo '<h6>',form_label($label),'</h6>';

	$data = array('name' =>$code,'class'=>'large_input corners' );
	
	echo '<p>';
		if (! empty($missing) && array_key_exists($code, $missing))

		 echo form_input($data, set_value($code)),'<span class="info_error">error</span>';

	else
	  echo form_input($data, set_value($code));
	
	echo '</p>';
	
	  $code = 'status';

  $label = 'Hiển thị';

	echo '<h6>',form_label($label),'</h6>';

$data = array('name' =>$code, 'id'=>$code ,'class'=>'','checked'=>'checked',  'value' => '1');
	$data1 = array('name' =>$code, 'id'=>$code ,'class'=>'', 'value' => '0');

	echo '<p>';
		 echo form_radio($data, set_value($code)),'Có';
		echo form_radio($data1, set_value($code)),'Không';
	
	echo '</p>';

	echo form_close(); //FORM END

	?> 
        
        
     